package controller

import (
	"net/http"
	"text/template"

	"gitee.com/shuwenhe/shuwen/cart/dao"
)

func GetItems(w http.ResponseWriter, r *http.Request) {
	items, _ := dao.GetItems()
	t := template.Must(template.ParseFiles("view/page/manager/item_manager.html"))
	t.Execute(w, items)
}
